// 引入 createApp
import { createApp } from 'vue'
// 引入 App 根组件
import App from './App.vue'
// 引入路由器
import router from "@/router/index.js";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

// 注册 Element Plus 插件
app.use(ElementPlus)
// 注册 Element Plus 图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 注册路由器
app.use(router)
// 挂载应用
app.mount('#app')
